package com.kaili.basic.pojo.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * @Desc: 设备登记信息导入Dto
 * @author: zhouyijian
 * @Time: 2019/8/2 17:44
 * @Copyright: © 2018 杭州凯立通信有限公司 版权所有
 * @Warning: 本内容仅限于公司内部传阅, 禁止外泄或用于其它商业目的
 */
@Data
public class MdmDeviceImportDTO implements Serializable {

    private static final long serialVersionUID = -7028353367745124714L;

    @Excel(name = "IMEI", orderNum = "1")
    @ApiModelProperty("设备imei")
    private String imei;

    @Excel(name = "型号", orderNum = "3")
    @ApiModelProperty("型号")
    private String model;

    @Excel(name = "SN", orderNum = "2")
    @ApiModelProperty("设备sn")
    private String sn;

    @Excel(name = "MAC", orderNum = "4")
    @ApiModelProperty("设备mac")
    private String mac;

    @Excel(name = "分组", orderNum = "7")
    @ApiModelProperty("分组名")
    private String groupName;

    @Excel(name = "机构", orderNum = "5")
    @ApiModelProperty("机构名")
    private String orgName;

    @Excel(name = "归属", orderNum = "10")
    @ApiModelProperty("归属名")
    private String belongName;

    @Excel(name = "设备名称", orderNum = "6")
    @ApiModelProperty("设备名称")
    private String deviceName;

    @Excel(name = "平台", orderNum = "8")
    @ApiModelProperty("平台名")
    private String plateformName;

    @Excel(name = "系统版本", orderNum = "9")
    @ApiModelProperty("系统版本")
    private String version;

    @Excel(name = "创建人", orderNum = "13")
    @ApiModelProperty("创建人")
    private String createName;

    @Excel(name = "类型", orderNum = "11")
    @ApiModelProperty("设备类型名")
    private String typeName;

    @Excel(name = "启用时间", orderNum = "12")
    @DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("启用时间")
    private Date actionTime;

    @Excel(name = "操作", orderNum = "15")
    @ApiModelProperty("设备是否启用:0停用1启用")
    private String isAction;

    @Excel(name = "登记时间", orderNum = "14")
    @DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间/设备登记时间")
    private Date createTime;
}
